<template>
  <div>
  <div id="box">

    <div id="black">

    </div>
    <div id="white">

    </div>
    <div id="bb">

    </div>
    <div id="ww">

    </div>
    <div id="bbl">

    </div>
    <div id="wwl">
    </div>
  </div>
    <div style="font-size: 24px;" > {{content}} </div>
  </div>
</template>

<script>
export default {
  name: 'taijiCartition',
  mounted() {
    this.$nextTick(() => {
      this.animateTaiChi();
    });
  },
  props:{
    content:''
  },
  methods: {
    animateTaiChi() {
      const taiChi = document.querySelector('.tai-chi-container');
      // taiChi.style.animation = 'rotate 5s linear infinite';
    }
  }
}
</script>

<style scoped>
*{margin: 0;padding: 0;}
#box{width: 30px;height: 30px;margin: 10px;position: relative;animation: move 30s infinite linear;}
#black{

  height: 30px;
  width: 30px;
  background-color: #000000;
  border-radius: 50%;
}
#white{
  height: 30px;
  width: 15px;
  background-color: white;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  position: absolute;
  top: 0;
  right: 0;
}
#bb{
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: black;
  position: absolute;
  top: 0;
  left: 7px;
}
#ww{
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  top: 15px;
  left: 7px;
}
#bbl{
  width: 4px;
  height: 4px;
  background-color: #000000;
  border-radius: 50%;
  position: absolute;
  /**
   * 要想在中间就要剪去小圆的
   */
  bottom: 5px;
  left: 13px;
}
#wwl{
  width: 4px;
  height: 4px;
  background-color: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  /**
   * 要想在中间就要剪去小圆的
   */
  top: 5px;
  left: 13px;
}
@keyframes move{
  from{transform: rotate(0deg);}
  to{transform: rotate(360deg);}
}

</style>